package com.zhanghu.backendZray.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhanghu.backendZray.mapper.TrialRecordMapper;
import com.zhanghu.backendZray.pojo.entity.TrialRecord;
import com.zhanghu.backendZray.service.TrialRecordService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 试用记录表 服务实现类
 * </p>
 *
 * @author zhangdong
 * @since 2025-01-03
 */
@Service
public class TrialRecordServiceImpl extends ServiceImpl<TrialRecordMapper, TrialRecord> implements TrialRecordService {

    /**
     * 试用者文件上传次数 + 1
     *
     * @param userId
     */
    @Transactional(rollbackFor = Exception.class)
    public void fileUploadCountAdd(Integer userId) {
        this.baseMapper.fileUploadCountAdd(userId);
    }
}
